﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="payroll.aspx.cs" Inherits="payroll_payroll" MasterPageFile="~/payroll/payroll2.master" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>


<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>


<asp:Content ID="Content1" runat="server" contentplaceholderid="head">
  

<!-- CONTENT START -->

    <div class="grid_16" id="content">
    <!--  TITLE START  --> 
    <div class="grid_9">
    <h1 class="dashboard">&nbsp;<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
        
        </h1>
    </div>
    <!--RIGHT TEXT/CALENDAR-->
    <!--RIGHT TEXT/CALENDAR END-->
    <div class="clear">
    </div>
    <!--  TITLE END  -->    
    <!-- #PORTLETS START -->
    <div id="portlets">
   
       <div class="column" id="Div2">
         
      
           <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
         
      
           <asp:Label ID="lb_company_id" runat="server" Text="0" Visible="False"></asp:Label>
           <asp:Label ID="lb_account_id" runat="server" Text="0" Visible="False"></asp:Label>
         
      
      </div>
     
      <!-- FIRST SORTABLE COLUMN END -->
      <!-- SECOND SORTABLE COLUMN START -->
      
	<!--  SECOND SORTABLE COLUMN END -->
    <div class="clear"></div>
    <!--THIS IS A WIDE PORTLET-->
    <div class="portlet">
       
		<div class="portlet-content nopadding">
       
                <asp:Panel ID="info" runat="server" width="70%" HorizontalAlign="Left"   >
                  <table cellpadding="4" cellspacing="2" width="100%" style="padding-left: 15%" >
                        <tr>
                            <td  colspan="2" >
                                <asp:Label ID="lb_id" runat="server" Text="0" 
                                    Visible="False"></asp:Label>
                                <asp:Label ID="lb_close" runat="server" Text="0" Visible="False"></asp:Label>
                                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                                </asp:ToolkitScriptManager>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                &nbsp;</td>
                            <td >
                                <asp:LinkButton ID="bt_save" runat="server" CssClass="button_add" 
                                    onclick="bt_save_Click" Visible="False"><span>Save</span></asp:LinkButton>
                                <asp:LinkButton ID="bt_edit" runat="server" CssClass="button_edit" 
                                    onclick="LinkButton7_Click" Visible="False"><span>Edit</span></asp:LinkButton>
                                <asp:LinkButton ID="bt_delete" runat="server" CssClass="button_cancel" 
                                    Visible="False"><span>Delete</span></asp:LinkButton>
                                <asp:LinkButton ID="bt_back" runat="server" CssClass="button_cancel" 
                                    onclick="LinkButton3_Click" Visible="False"><span>Exit</span></asp:LinkButton>
                                <asp:LinkButton ID="LinkButton1" runat="server"><span></span></asp:LinkButton>
                                <asp:LinkButton ID="bt" runat="server" ForeColor="White">.</asp:LinkButton>
                                <asp:ModalPopupExtender ID="Panel_Add_Extender" runat="server" 
                                    BackgroundCssClass="FondoAplicacion" CancelControlID="LinkButton3" 
                                    PopupControlID="Panel1" TargetControlID="bt">
                                </asp:ModalPopupExtender>
                                <asp:LinkButton ID="bt_report" runat="server" CssClass="button_add" 
                                    OnClick="bt_report_Click"><span>Report</span></asp:LinkButton>
                                <asp:LinkButton ID="bt_search" runat="server" CssClass="button_add" 
                                    OnClick="bt_search_Click" Visible="false"><span>Search</span></asp:LinkButton>
                                <asp:LinkButton ID="bt_close" runat="server" CssClass="button_close" 
                                    OnClick="bt_close_Click" Visible="false"><span>Close Payroll</span></asp:LinkButton>
                            </td>
                        </tr>
                       
                      
                    
                       
                       
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Label ID="Label4" runat="server" 
                                    Text="* During trial period, applicant does not pay IGSS"></asp:Label>
                            </td>
                        </tr>
                       
                      
                    
                       
                       
                    </table>

          
                </asp:Panel>
             
        </div>
    </div>
  
<!--  END #PORTLETS -->  
   </div>

    <div class="clear"> </div>
       <!--THIS IS A WIDE PORTLET-->
    <div class="portlet">
        <div class="portlet-header fixed">
            <img src="images/icons/user.gif" width="16" height="16" alt="Payroll" /> 
            Payroll Detail
     </div>
     <div class="portlet-content nopadding">
		     
     

            <asp:UpdatePanel    runat="server"   >
       
       <ContentTemplate>
       <div id="floatCenter">
        <asp:Panel ID="Panel1" runat="server"   
                                  Width="1200px">
                                    <table  bgcolor="White" width="1200px">
                                       
                                        <tr>
                                            <td>
                                                <asp:Label ID="lb_namemen" runat="server" CssClass="floatLeft" 
                                                    Font-Size="Large" ForeColor="#3366FF"></asp:Label>
                                                </td>
                                            <td >
                                                <asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" Width="450px"></asp:TextBox>
                                              
                                               
                                            </td>
                                            <td>  <asp:LinkButton ID="save_comment" runat="server" CssClass="button_ok" 
                                                    onclick="save_comment_Click"><span>Save comment</span></asp:LinkButton></td>
                                            <td> <asp:LinkButton ID="LinkButton3" runat="server" CssClass="button_add" 
                                                    onclick="LinkButton3_Click1"><span>Cancel</span></asp:LinkButton></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lb_employeeid" runat="server" Text="Label" Visible="False"></asp:Label>
                                                <asp:Label ID="lb_payrollid" runat="server" Text="Label" Visible="False"></asp:Label>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </asp:Panel>
       </div>
       <asp:TabContainer runat="server" ID="TabConteiner1" ActiveTabIndex="0" Width="100%">
       <asp:TabPanel runat="server" ID="tab_general"  ><HeaderTemplate >General</HeaderTemplate><ContentTemplate><asp:GridView runat="server" ID="gv_general"
                onrowdatabound="gv_general_RowDataBound" CellPadding="15" CellSpacing= "15"
                AutoGenerateColumns="False" 
                    onselectedindexchanged="gv_general_SelectedIndexChanged"  BackColor="White"><AlternatingRowStyle BackColor="#CDD9E2" />
                    <Columns><asp:TemplateField HeaderText="#"><ItemTemplate><asp:Label ID="lbnum" runat="server" Text='<%# Eval("number")%>' 
                                      TextAlign="Left" Width="20px" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                                      <asp:TemplateField Visible="False"><ItemTemplate><asp:Label ID="lbid" runat="server" Text='<%# Eval("Employee")%>'               TextAlign="Left" Visible="false" Width="10px" /></ItemTemplate></asp:TemplateField>
                                      <asp:TemplateField HeaderText="Name"><ItemTemplate><asp:Label ID="lbClient" runat="server" Text='<%# Eval("Name")%>' TextAlign="Left" Width="180px" ToolTip='<%# Eval("comments")%>'  /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                                      </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="IGSS (y/n)" ><ItemTemplate><asp:DropDownList ID="ddl_igss" runat="server" selectedvalue='<%# Eval("IGSSflag") %>' Width="80px" OnSelectedIndexChanged="change" AutoPostBack="true"><asp:ListItem Value="0">No</asp:ListItem><asp:ListItem Value="1">Yes</asp:ListItem></asp:DropDownList></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center"  />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Sev (y/n)"><ItemTemplate ><asp:DropDownList ID="ddl_sev" runat="server"  selectedvalue='<%# Eval("severanceflag") %>' Width="80px" OnSelectedIndexChanged="change" AutoPostBack="true"><asp:ListItem Value="0">No</asp:ListItem><asp:ListItem Value="1">Yes</asp:ListItem></asp:DropDownList></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Salary"><ItemTemplate><asp:Label ID="salary" runat="server"  Text='<%# Eval("Salary")%>' Visible="true"  Width="80px"/></ItemTemplate>
                                         <HeaderStyle HorizontalAlign="Center" />  
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Days worked"><ItemTemplate><asp:TextBox ID="dayworks" runat="server" Text='<%# Eval("Days works")%>'   OnTextChanged="change" AutoPostBack="true"  Width="80px"   style="text-align:right" /></ItemTemplate>
                                         <HeaderStyle HorizontalAlign="Center" />  
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Daily  Rate"><ItemTemplate><asp:Label ID="dailyrate" runat="server"  Text='<%# Eval("dailyrate")%>' Visible="true"  Width="80px"/></ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />  
                        </asp:TemplateField>
                                      <asp:TemplateField HeaderText="Total"><ItemTemplate><asp:Label ID="lbt1" runat="server" Text='<%# Eval("t1") %>' Visible="true"  Width="80px"  /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" /> 
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Base Salary"  Visible="False"><ItemTemplate><asp:Label ID="lbasesal" runat="server" Text='<%# Eval("basesalary")%>' Visible="false" Width="80px" /></ItemTemplate>
                                         <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Ordinary Salary"><ItemTemplate><asp:Label ID="lbordinary" runat="server" Text='<%# Eval("ordinarysalary")%>' Width="80px" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Incentive Bonus"><ItemTemplate><asp:Label ID="incbonus" runat="server" Text='<%# Eval("Bonus")%>'  Width="80px"/></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      <asp:TemplateField HeaderText="EH"><ItemTemplate><asp:TextBox ID="eh" runat="server" Text='<%# Eval("Extra Hours")%>'  OnTextChanged="change" AutoPostBack="true"  Width="80px" style="text-align:right"  /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      <asp:TemplateField HeaderText="EH (1.5)"><ItemTemplate><asp:TextBox ID="ehh" runat="server" Text='<%# Eval("extrahours2")%>'  OnTextChanged="change" AutoPostBack="true"  Width="80px" style="text-align:right" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      <asp:TemplateField HeaderText="Cost EH"><ItemTemplate><asp:Label ID="ceh" runat="server" Text='<%# Eval("costhour") %>'  Visible="true" Width="80px" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Pay of Hours"><ItemTemplate><asp:Label ID="payeh" runat="server" Text='<%# Eval("payhours") %>' Visible="true"  Width="80px"/></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Extra Orders"><ItemTemplate><asp:TextBox ID="eo" runat="server" Text='<%# Eval("Extra Orders")%>' Width="80px" OnTextChanged="change" AutoPostBack="true" style="text-align:right" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Cost EO" Visible="False"><ItemTemplate><asp:TextBox ID="ceo" runat="server" Text='<%# Eval("costorder") %>' Width='80px' Visible="false" style="text-align:right" /></ItemTemplate><HeaderStyle HorizontalAlign="Center" /></asp:TemplateField>
                                      
                                      <asp:TemplateField   HeaderText="Pay of Orders"><ItemTemplate><asp:Label ID="payeo" runat="server" Text='<%# Eval("payorders") %>' Visible="true"  Width="80px"/></ItemTemplate><HeaderStyle HorizontalAlign="Center" /></asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Adj (+)"><ItemTemplate><asp:TextBox ID="adjustmentpos" runat="server" Text='<%# Eval("Adjustmentpos")%>' Width="80px" OnTextChanged="change" AutoPostBack="true" style="text-align:right" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Sub Total"><ItemTemplate><asp:Label ID="t2" runat="server" Text='<%# Eval("t2")%>' Width="80px" /></ItemTemplate><HeaderStyle HorizontalAlign="Center" /></asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Adj (-)"><ItemTemplate><asp:TextBox ID="adjustmentneg" runat="server" Text='<%# Eval("Adjustmentneg")%>' Width="80px" OnTextChanged="change" AutoPostBack="true" style="text-align:right"  /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      <asp:TemplateField HeaderText="IGSS (4.83%)"><ItemTemplate><asp:Label ID="igsst2" runat="server" Text='<%# Eval("igsst")%>'  Visible="true" Width="80px"  /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Parking"><ItemTemplate><asp:TextBox ID="parking" runat="server" Text='<%# Eval("parking")%>' Width="80px" OnTextChanged="change" AutoPostBack="true" style="text-align:right" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="SubTotal (-)"><ItemTemplate><asp:Label ID="subtminus" runat="server" Text='<%# Eval("t3")%>' Visible="true" Width="80px" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Check Amount"><ItemTemplate><asp:Label ID="check" runat="server"  ForeColor="Blue" Text='<%# Eval("checkamount")%>' Width="80px" /></ItemTemplate>
                                      <HeaderStyle HorizontalAlign="Center" />
                                      </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Calculation"  Visible="False"><ItemTemplate><asp:Label ID="igs" runat="server" Text='<%# Eval("IGSS")%>' Visible="false"  Width="80px"/></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField  HeaderText="IGSS (4.83%)"><ItemTemplate><asp:Label ID="igsst" runat="server" Text='<%# Eval("igsst")%>'  Width="80px"
                                      Visible="true" /></ItemTemplate><HeaderStyle HorizontalAlign="Center" /></asp:TemplateField>
                                      
                                      <asp:TemplateField  HeaderText="IGSS (12.67%)"><ItemTemplate><asp:Label ID="igssp" runat="server" Text='<%# Eval("igssp")%>'  Visible="true"  Width="80px"/></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="IGSS Total"><ItemTemplate><asp:Label ID="igsstt" runat="server" Text='<%# Eval("igsstt")%>' Visible="true" Width="80px" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      
                                      <asp:TemplateField HeaderText="Severence Base" Visible="False"><ItemTemplate><asp:Label ID="sevbase" runat="server" Text='<%# Eval("severance")%>' Visible="false" Width="80px"/></ItemTemplate></asp:TemplateField>
                              
                                    <asp:TemplateField  HeaderText="Severence Bonus" Visible="False"><ItemTemplate><asp:Label ID="sevbaseBONUS" runat="server" Text='<%# Eval("severancebonus")%>'  Visible="false"  Width="80px"/></ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                    <asp:TemplateField HeaderText="Total" Visible="False"><ItemTemplate><asp:Label ID="sevtotal" runat="server" Text='<%# Eval("severancetotal")%>'  Visible="false" Width="80px"/></ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>

                         <asp:TemplateField HeaderText=" Sev Amount "><ItemTemplate><asp:Label ID="severance2" runat="server" Text='<%# Eval("severance")%>'  Visible="true" Width="80px" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText=" Sev Bonus "><ItemTemplate><asp:Label ID="severancebonus" runat="server" Text='<%# Eval("severancebonus")%>'  Visible="true" Width="80px" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText=" Bono 13 "><ItemTemplate><asp:Label ID="bono13" runat="server" Text='<%# Eval("bono13")%>'  Visible="true" Width="80px" /></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText=" Bono 14 "><ItemTemplate><asp:Label ID="bono14" runat="server" Text='<%# Eval("bono14")%>' Visible="true" Width="80px"/></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Sev"><ItemTemplate><asp:Label ID="sev" runat="server" Text='<%# Eval("severancemon")%>'  Visible="true" Width="80px"/></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Total Bonus"><ItemTemplate><asp:Label ID="totalbonus" runat="server" Text='<%# Eval("totalbonus")%>' Width="80px"/></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField HeaderText="Grand Total"><ItemTemplate><asp:Label ID="grandtotal" runat="server"  ForeColor="Blue" Text='<%# Eval("grantotal")%>' Width="80px"/></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>

                       <asp:TemplateField HeaderText="Payment Method"><ItemTemplate ><asp:DropDownList ID="ddl_method" runat="server"  DataSource="<%# getbancos() %>" DataTextField="nombre" DataValueField="id"  selectedvalue='<%# Eval("bank") %>' Width="80px" ></asp:DropDownList></ItemTemplate>
                                          <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                                      
                                      <asp:TemplateField><ItemTemplate >
                                        <asp:ImageButton ID="buttoncomment" ImageUrl="~/payroll/images/icons/comments.gif" runat="server" OnClick="comments_click" ToolTip='<%# Eval("comments")%>'  />
                                        <asp:TextBox ID="tbcomment" Text='<%# Eval("comments")%>' Visible="false" runat="server" ></asp:TextBox>
                                      </ItemTemplate></asp:TemplateField>
                                      <asp:TemplateField HeaderText="IGSS" Visible="False"><ItemTemplate><asp:Label ID="ifssf" runat="server" Text='<%# Eval("IGSS")%>' Visible="false" /></ItemTemplate></asp:TemplateField>
                                      <asp:TemplateField HeaderText="agreement" Visible="False"><ItemTemplate><asp:Label ID="agreement" runat="server" Text='<%# Eval("agreement")%>' Visible="false" />
                                       
                                      </ItemTemplate></asp:TemplateField>
                                     
                                </Columns>
                        </asp:GridView>
                </ContentTemplate>
           </asp:TabPanel>
           <asp:TabPanel ID="tab_igss" runat="server" HeaderText="  IGSS  "><ContentTemplate>
               <asp:GridView ID="gv_igss" runat="server" AutoGenerateColumns="False" 
                       CellPadding="15" CellSpacing="10" HorizontalAlign="Center" 
 
                       OnSelectedIndexChanged="gv_general_SelectedIndexChanged" 
                   onrowdatabound="gv_igss_RowDataBound"><AlternatingRowStyle BackColor="#CDD9E2" />
                       <Columns>
                        <asp:TemplateField HeaderText="#"><ItemTemplate><asp:Label ID="lbnum0" runat="server" Text='<%# Eval("number")%>' TextAlign="Left" Width="20px" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                        <asp:TemplateField Visible="False"><ItemTemplate><asp:Label ID="lbid0" runat="server" Text='<%# Eval("Employee")%>' TextAlign="Left" Visible="false" Width="10px" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                        <asp:TemplateField HeaderText="Name"><ItemTemplate><asp:Label ID="lbClient0" runat="server" Text='<%# Eval("Name")%>' TextAlign="Left" Width="250px" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                        <asp:TemplateField HeaderText="Ordinary Salary"><ItemTemplate><asp:Label ID="lbordinary0" runat="server" Text='<%# Eval("ordinarysalary")%>' Width="150px" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                        <asp:TemplateField HeaderText="IGSS (y/n)" Visible="false"><ItemTemplate><asp:DropDownList ID="ddl_igss0"  Visible="false" runat="server" selectedvalue='<%# Eval("IGSSflag") %>' Width="45px" Enabled="false"><asp:ListItem Value="0">No</asp:ListItem><asp:ListItem Value="1">Yes</asp:ListItem></asp:DropDownList></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                        <asp:TemplateField HeaderText="IGSS(4.83%)"><ItemTemplate><asp:Label ID="igsst4" runat="server" Text='<%# Eval("igsst")%>' Width="150px"  Visible="true" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                        <asp:TemplateField HeaderText="IGSS(12.67%)"><ItemTemplate><asp:Label ID="igssp0" runat="server" Text='<%# Eval("igssp")%>' Width="150px" Visible="true" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField><asp:TemplateField HeaderText="IGSS Total">
                        <ItemTemplate><asp:Label ID="igsstt0" runat="server" Text='<%# Eval("igsstt")%>' Width="100px" Visible="true" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                        </Columns>
                </asp:GridView>
             </ContentTemplate>
           </asp:TabPanel>
               <asp:TabPanel ID="tab_sev" runat="server" HeaderText="  SEV"><ContentTemplate>
                   <asp:GridView ID="gv_sev" runat="server" AutoGenerateColumns="False" 
                           CellPadding="15" CellSpacing="10" HorizontalAlign="Center"
                           
                           OnSelectedIndexChanged="gv_general_SelectedIndexChanged" 
                       OnRowDataBound="gv_sev_RowDataBound"><AlternatingRowStyle BackColor="#CDD9E2" />
                           <Columns>
                           <asp:TemplateField HeaderText="#"><ItemTemplate><asp:Label ID="lbnum1" runat="server" Text='<%# Eval("number")%>' TextAlign="Left" Width="20px" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                           <asp:TemplateField Visible="False"><ItemTemplate><asp:Label ID="lbid1" runat="server" Text='<%# Eval("Employee")%>' TextAlign="Left" Visible="false" Width="10px" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                           <asp:TemplateField HeaderText="Name"><ItemTemplate><asp:Label ID="lbClient1" runat="server" Text='<%# Eval("Name")%>' TextAlign="Left" Width="250px" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                            <asp:TemplateField HeaderText="Sev (y/n)" Visible="false"><ItemTemplate><asp:DropDownList ID="ddl_sev0" runat="server"  selectedvalue='<%# Eval("severanceflag") %>' Width="45px" Visible="false"><asp:ListItem Value="0">No</asp:ListItem><asp:ListItem Value="1">Yes</asp:ListItem></asp:DropDownList></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                           <asp:TemplateField HeaderText="Bono13"><ItemTemplate><asp:Label ID="bono17" runat="server"  Text='<%# Eval("bono13")%>' Width="150px" Visible="true"  /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                           <asp:TemplateField HeaderText="Bono14"><ItemTemplate><asp:Label ID="bono18" runat="server" Text='<%# Eval("bono14")%>' Width="150px" Visible="true" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                           <asp:TemplateField HeaderText="Sev"><ItemTemplate><asp:Label ID="sev1" runat="server" Text='<%# Eval("severancemon")%>'  Width="150px" Visible="true" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                           <asp:TemplateField HeaderText="Total Bonus"><ItemTemplate><asp:Label ID="totalbonus1" runat="server" Text='<%# Eval("totalbonus")%>' Width="150px" /></ItemTemplate><HeaderStyle HorizontalAlign="Left" /></asp:TemplateField>
                           </Columns>
                       </asp:GridView>
                       </ContentTemplate></asp:TabPanel>
        </asp:TabContainer>
        
                               
      
                  </ContentTemplate>
            </asp:UpdatePanel>
            <asp:Panel runat="server" ID="P_crystal">
                 <CR:CrystalReportViewer ID="CRVPAY" runat="server" AutoDataBind="True" 
                GroupTreeImagesFolderUrl="" ToolbarImagesFolderUrl="" ToolPanelWidth="150px" 
                    ReuseParameterValuesOnRefresh="True" />
            
            </asp:Panel>
         <asp:Panel runat="server" ID="P_type" CssClass="CajaDialogo" Width="450px">
             <table style="width: 100%" align="center">
                 <tr>
                     <td>
                         &nbsp;</td>
                     <td align="center">
                     
                         <table style="width: 100%">
                             <tr>
                                 <td style="width: 88px">
                                     &nbsp;</td>
                                 <td style="width: 131px">
                                     <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Large" 
                                         Text="Report Type"></asp:Label>
                                 </td>
                                 <td>
                                     &nbsp;</td>
                             </tr>
                         </table>
                         
                     </td>
                     <td>
                         &nbsp;</td>
                 </tr>
                 <tr>
                     <td width="20%" >
                         &nbsp;</td>
                     <td align="center">
                         <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
                             Width="120px" TextAlign="Left" CssClass="RadioButtonList" 
                             RepeatColumns="2" RepeatDirection="Horizontal" CellPadding="2" 
                             CellSpacing="2">
                             <asp:ListItem Value="1">Internal</asp:ListItem>
                             <asp:ListItem Value="2">External</asp:ListItem>
                             <asp:ListItem Value="3">IGSS</asp:ListItem>
                             <asp:ListItem Value="4">Severance</asp:ListItem>
                         </asp:RadioButtonList>
                     </td>
                     <td width="20%">
                         &nbsp;</td>
                 </tr>
                 <tr>
                     <td>
                         &nbsp;</td>
                     <td align="center">
                         <table style="width: 100%">
                             <tr>
                                 <td >
                                     &nbsp;</td>
                                 <td style="width: 218px">
                                     <asp:LinkButton ID="LinkButton4" runat="server" CssClass="button_ok" 
                                         onclick="LinkButton4_Click"><span>Generate</span></asp:LinkButton>
                                     <asp:LinkButton ID="LinkButton2" runat="server" CssClass="button_ok" 
                                         onclick="LinkButton2_Click"><span>Cancel</span></asp:LinkButton>
                                 </td>
                                 <td>
                                     &nbsp;</td>
                             </tr>
                         </table>
                     </td>
                     <td>
                         &nbsp;</td>
                 </tr>
             </table>
         </asp:Panel>  
         <asp:ModalPopupExtender ID="type_extender" runat="server" BackgroundCssClass="FondoAplicacion" TargetControlID="bt" PopupControlID="P_type">
         </asp:ModalPopupExtender>           
             
          
            
     
        </div>
  
  </div>
    </div>
<!-- END CONTENT-->    
    
        <div class="clear">
        </div>
    </div>
<!-- WRAPPER END -->

    
</asp:Content>
